﻿using System.Windows;
using System.Windows.Controls;

namespace ERPJopi.View.View.Login.UCLogin
{
    /// <summary>
    /// Interaction logic for LoginUC.xaml
    /// </summary>
    public partial class LoginUC : UserControl
    {
        public static readonly DependencyProperty dependecyPropertyUsuario =
            DependencyProperty.Register("Usuario", typeof(string), typeof(Login));

        public static readonly DependencyProperty dependecyPropertySenha =
            DependencyProperty.Register("Senha", typeof(string), typeof(Login));

        public string Usuario
        {
            get { return (string)GetValue(dependecyPropertyUsuario); }
            set { SetValue(dependecyPropertyUsuario, value); }
        }
        public string Senha
        {
            get { return (string)GetValue(dependecyPropertySenha); }
            set { SetValue(dependecyPropertySenha, value); }
        }

        public LoginUC()
        {
            InitializeComponent();
            DataContext = this;
        }

        private void btnEntrar_Click(object sender, RoutedEventArgs e)
        {
            new Principal.Principal().Show();
        }
    }
}
